import 'package:flutter/material.dart';

void main()=>runApp(MaterialApp(
  home: HomePage(),
));

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("table"),),
      body: Center(
        child: Table(
          columnWidths: const <int, TableColumnWidth>{
            0:FixedColumnWidth(50),
            1:FixedColumnWidth(50),
            2:FixedColumnWidth(50),
            3:FixedColumnWidth(50),
          },
          border: TableBorder.all(
            color: Color(0xffff0000),
            width: 2
          ),
          children: const <TableRow>[
            TableRow(
              children: [
                Text("头像"),
                Text("姓名"),
                Text("邮箱"),
                Text("手机"),
              ]
            ),
            TableRow(
              children: [
                Icon(Icons.email),
                Text("2"),
                Text("3"),
                Text("4"),
              ]
            ),
            TableRow(
              children: [
                Icon(Icons.email),
                Text("2"),
                Text("3"),
                Text("4"),
              ]
            ),
            TableRow(
              children: [
                Icon(Icons.email),
                Text("2222"),
                Text("223"),
                Text("422"),
              ]
            ),
          ],
        ),
      ),
    );
  }
}

